package com.wtc.homework4;

public class LabeledPoint extends Point {
    private String name;

    public LabeledPoint(double x, double y, String name) {
        super(x, y);
        this.name = name;
    }

    @Override
    public String input() {
        return super.input() + "，名称：" + name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
